package com.exercise.core.exception;/**
 * Created by kete on 2017-05-11.
 */

/**
 * 作者：kete
 * 创建时间：2017-05-11 16:47
 * 功能描述：
 * 版本：
 */
public class EbsException extends  RuntimeException {

    /** 异常编号，根据编号显示不同的页面*/
    private Integer errCode;

    /** i18n编号 */
    private String i18nCode;

    /** 文本替换的参数 */
    private String[] args;

    public EbsException() {
    }
    public EbsException(Throwable cause){
        super(cause);
    }

    public EbsException(Integer errCode,String i18nCode,String... args){
        this.errCode = errCode;
        this.i18nCode = i18nCode;
        this.args = args;
    }

    public EbsException(String i18nCode,String... args){
        this.i18nCode = i18nCode;
        this.args = args;
    }

    public Integer getErrCode() {
        return errCode;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }

    public String getI18nCode() {
        return i18nCode;
    }

    public void setI18nCode(String i18nCode) {
        this.i18nCode = i18nCode;
    }

    public String[] getArgs() {
        return args;
    }

    public void setArgs(String[] args) {
        this.args = args;
    }
}
